import { lazyInst } from "../util/module";
import { core } from "./index";

export class ObjectType {
  foo() {
    console.log("ObjectType foo called");
  }

  addType(type: any) {
    core.ds.foo();
    console.log("Type added:", type);
  }
}

export const ot = lazyInst(ObjectType);
export const _assign_ = { ot };

declare global {
  interface CoreModule {
    ot: ObjectType;
  }
}
